CC = g++

CFLAGS += -I/usr/local/ffmpeg/include -fpermissive -Wall 
CFLAGS += -I/root/Codes/ax_export/Vdec/common
CFLAGS += -I/root/Codes/ax_export/Vdec/out/include/
#CFLAGS += -I/usr/include/aarch64-linux-gnu 
#CFLAGS += -I/usr/include/opencv4 
#CFLAGS += -I/root/Codes/ax_export/Vdec/FFmpeg-n7.1 -Wall
LDFLAGS += -L/usr/local/ffmpeg/lib/ -lavformat -lavcodec -lavutil -lswscale -l swresample  
LDFLAGS += -L/root/Codes/ax_export/Vdec/out/lib/ -lax_sys -lax_pkg -lax_vdec -lax_proto -lax_vdec

TARGET = dec_main
SRCS = sample_main.c common/sample_vdec.c ../common/common_vdec_cmd.c   ../common/common_vdec.c ../common/common_vdec_utils.c ../common/common_arg_parse.c
# ../common/common_vdec_hal.c

OBJS = $(SRCS:.c=.o)

all: $(TARGET)

$(TARGET) : $(OBJS)
	$(CC) $(OBJS) $(LDFLAGS) -o $@ 

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean :
	rm $(OBJS) $(TARGET)
